package com.dr.cmdb.gateway.controller;

import com.dr.cmdb.common.model.response.ApiResponse;
import com.dr.cmdb.facade.api.ModelApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

/**
 * @ProjectName: cmdb-gateway
 * @Package: com.dr.cmdb.gateway.controller
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/4/22 17:14
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@RestController
@RequestMapping("/test")
public class HelloController {

    @Autowired
    private ModelApi modelApi;


    @RequestMapping(value = "/list")
    public ApiResponse<List<Object>> get(){
        System.out.println("ceshi");
        return modelApi.getList(new HashMap<>());
    }
}
